import { createApp } from "vue";
import "./styles.less";
import App from "./App.vue";
import router from '@/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'
import './assets/iconfonts/iconfont.css'

const app = createApp(App)
const pinia = createPinia()

app.use(ElementPlus)
app.use(pinia)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.directive('noselect', {
    mounted(el){
        el.classList.add('noselect')
    }
});

app.use(router)

app.mount("#app");
